package com.example.demo.IPTest;

import com.example.demo.config.dateUtil.IpUtils;

import javax.servlet.http.HttpServletRequest;

public class IpApi {
    public static void main(String[] args) {
        System.out.println(IpUtils.getHostIp());
        System.out.println(IpUtils.getExternalIP());
    }
}
